package com.zhz.system.contract.request;

import com.zhz.common.tool.mybatisplus.base.core.contract.BaseRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户保存请求
 *
 * @author zhouhengzhe
 * @date 2023/4/3
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserSaveRequest extends BaseRequest {
    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 用户名称
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 启用状态 0是禁用，1是启用
     */
    private Integer enableState;

    /**
     * 部门ID
     */
    private String departmentId;

    /**
     * 入职时间
     */
    private LocalDate timeOfEntry;

    /**
     * 聘用形式
     */
    private Integer formOfEmployment;

    /**
     * 工号
     */
    private String workNumber;

    /**
     * 管理形式
     */
    private String formOfManagement;

    /**
     * 工作城市
     */
    private String workingCity;

    /**
     * 转正时间
     */
    private LocalDate correctionTime;

    /**
     * 在职状态 1.在职  2.离职
     */
    private Integer inServiceStatus;

    /**
     * 企业ID
     */
    private String companyId;

    private String companyName;

    private String departmentName;

    /**
     * 用户级别：saasAdmin，coAdmin，user
     */
    private String level;

    private String staffPhoto;

    /**
     * 离职时间
     */
    private LocalDateTime timeOfDimission;
}
